﻿using Oya.Entities.ElementsDeCombat;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Oya.Entities
{
    public class MonstreEtat
    {
        public int NbIterationEtat { get; set; }

        /// <summary>
        /// Type d etat.  (mort, vivant, ...)
        /// </summary>
        public MonstreEtatType EtatType
        { get; set; }

        /// <summary>
        /// 0, nombre de tour, 1 pendant partie...
        /// </summary>
        public AffecteQuand EtatAffecteQuand { get; set; }

        //public void FaireMourrir()
        //{ FaireMourrir(AffecteQuand.EnTour); }

        public void ChangerEtat(AffecteQuand affecteQuand, int nbITeration)
        {
            this.EtatAffecteQuand = affecteQuand;
            this.NbIterationEtat = nbITeration;
        }

        public void FaireMourrir(AffecteQuand affecteQuand = AffecteQuand.EnTour, int nbIteration = 3)
        {
            this.EtatType = MonstreEtatType.Mort;
            this.EtatAffecteQuand = affecteQuand;
            this.NbIterationEtat = nbIteration;
        }


    }
}